/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author TQNINH
 */
public class AccountManager {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        CustomerAccount acc1 = new CustomerAccount("Acc 1", 720.0);
        CustomerAccount acc2 = new CustomerAccount("Acc 2", 500.0);
        CustomerAccount acc3 = new CustomerAccount("Acc 3", 1200.0);
        CustomerAccount acc4 = new CustomerAccount("Acc 4", 1500.0);
        
        TransferManager transfer1 = new TransferManager(acc1, acc2, 300.0);
        TransferManager transfer2 = new TransferManager(acc3, acc4, 200.0);
        
        Thread t1 = new Thread(transfer1);
        Thread t2 = new Thread(transfer2);
        
        t1.start();
        t2.start();
        t2.setPriority(1);
    }
}
